package com.joplus.housekeeper.adapter;

import android.content.Context;
import android.widget.ImageView;

import com.joplus.housekeeper.R;
import com.joplus.housekeeper.bean.RecommandListNewBean;
import com.joplus.housekeeper.utils.CommonAdapter;
import com.joplus.housekeeper.utils.ViewHolder;
import com.nostra13.universalimageloader.core.ImageLoader;

import java.util.List;

/**
 * author： ccm
 * time： 2017/5/5.
 * description：
 */

public class RecommandListNewAdapter extends CommonAdapter<RecommandListNewBean.DataBean.SpecialFeaturesBean> {
    /**
     * @param context  上下文
     * @param layoutId 布局id
     * @param datas    数据
     */
    public RecommandListNewAdapter(Context context, int layoutId, List datas) {
        super(context, layoutId, datas);
    }

    @Override
    public void convert(ViewHolder holder, RecommandListNewBean.DataBean.SpecialFeaturesBean o) {
        ImageView iv = holder.getView(R.id.iv_img);
        ImageView off = holder.getView(R.id.iv_offline);

        ImageLoader.getInstance().displayImage(o.getPicUrl(), iv);
    }
}
